package edu.qhst.chat.netty;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 自定义消息处理器
 *
 * @author 加浓美式
 * @Date 2023/7/4
 */
public class ChatMsgHandler extends SimpleChannelInboundHandler {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, Object msg) throws Exception {
        // 通过主线程处理器处理消息
        MainMsgProcessor.getInstance().process(channelHandlerContext, msg);
    }
}
